package com.ruoyi.orderEat.mapper;

import com.ruoyi.orderEat.domain.SpecificationAssociation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SpecificationAssociationMapper {
    int deleteByPrimaryKey(Long id);

    void deleteBatch(@Param("ids") List<Long> ids);

    int insert(SpecificationAssociation record);

    void insertBatch(@Param("specificationAssociationList") List<SpecificationAssociation> specificationAssociationList);

    int insertSelective(SpecificationAssociation record);

    SpecificationAssociation selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SpecificationAssociation record);

    int updateByPrimaryKey(SpecificationAssociation record);

    List<SpecificationAssociation> selectAllByShopIdAndSpecificationIdAndFlavourId(@Param("shopId")Long shopId,@Param("specificationId")Long specificationId,@Param("flavourId")Long flavourId);

    List<SpecificationAssociation> selectAllByFlavourId(@Param("flavourId")Long flavourId);




}
